package com.tianshuo.model;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @ClassName : Person
 * @Description : 测试xml构造方法注入
 * @Author : tianshuo
 * @Date: 2020-08-26 11:49
 */
@Component
public class Person {

	private String str;

	@Value("888888")
	private String tel;

	private String name;
	private int age;
	private String school;

	public Person() {
	}

	public Person(String name, int age, String school) {
		this.name = name;
		this.age = age;
		this.school = school;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getStr() {
		return str;
	}

	public void setStr(String str) {
		this.str = str;
	}

	@Override
	public String toString() {
		return "Person{" +
				"str='" + str + '\'' +
				", tel='" + tel + '\'' +
				", name='" + name + '\'' +
				", age=" + age +
				", school='" + school + '\'' +
				'}';
	}
}

